package com.class06;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Person {
    private String name;
    private int age;
}



class test{
    public static void main(String[] args) {
//        给对象赋值：直接赋值、setter方法赋值 、 构造方法赋值 、 反射赋值
        Person person = new Person("19", 20);
        person.setName("19");
    }
}